Hi, i've managed to write a script that retrieves an xml file and outputs the contents to html, it works fine but the output is too long, this is my script so far:
$bbc = simplexml_load_file('xmlfile.xml');
$bebese = $bbc->xpath('//programme'); //search for all "programme" elements
echo "\t<div id=\"listings\">\n";
echo "\t<p class=\"desc\"><b>$fulltime</b> and forward.\n</p><br />";
But like i said, the output is several pages long, i would like it to "end" after lets say 10 entries, then save the rest for a second and maybe a third page, like action?get=entry?page=2 ..
I was thinking to add something like a $counter, increase it until it's 10, then put out a link to the second page.